import { request } from "@/utils/http";

export const getBannerAPI = (num) => {
  return request({
    url: '/home/banner',
    data: { distributionSite: num }
  })
};


export const getCategoryAPI = () => {
  return request({
    url: "/home/category/mutli",
  });
};

export const getHotsAPI = () => {
  return request({
    url: "/home/hot/mutli",
  });
};

export const getNewGoodsAPI = () => {
  return request({ url: '/home/new' })
};


export const getGuessAPI = (page) => {
  return request({ url: '/home/goods/guessLike', data: { pageSize: 50, page } })
};


// 1. 
export const getRecommendAPI = (url, data) => {
  return request({ url, data })
};